using System;
using System.Collections.Generic;
using System.Text;
using DAL;
using Models;

namespace BLL
{

    public static partial class AdminManager
    {
        public static bool AddAdmin(Admin admin)
        {
            return AdminService.AddAdmin(admin);
        }

        public static bool DeleteAdminByAdminID(int adminID)
        {
            return AdminService.DeleteAdminByAdminID(adminID);
        }

        public static bool ModifyAdmin(Admin admin)
        {
            return AdminService.ModifyAdmin(admin);
        }

        public static IList<Admin> GetAllAdmins()
        {
            return AdminService.GetAllAdmins();
        }

        public static Admin GetAdminByAdminID(int adminID)
        {
            return AdminService.GetAdminByAdminID(adminID);
        }

        public static bool GetAdminByAdminIDandRow(int adminID, string title)
        {
            return AdminService.GetAdminByAdminIDandRow(adminID, title);
        }

        public static Admin LoginByAdminName(string adminName)
        {
            return AdminService.LoginByAdminName(adminName);
        }

        public static IList<Admin> GetAdminByName(string adminName)
        {
            return AdminService.GetAdminByName(adminName);
        }

        public static IList<Admin> GetAllAdminsSort(string sortName, string sortType)
        {
            return AdminService.GetAllAdminsSort(sortName,sortType);
        }

        public static Admin GetAdminBytop1()
        {
            return AdminService.GetAdminBytop1();
        }
    }
}
